package cn.edu.nju.software.grapheditor.cmd;

import java.awt.Point;

import cn.edu.nju.software.grapheditor.Drawing;
import cn.edu.nju.software.grapheditor.shape.Shape;

/**@author smy*/
//Written on May 22th
public class BackCmd extends Command{
	private Shape current;
	public void executeClick(Point p, Drawing dwg) {
	   current=dwg.getFrontmostContainer(p);
	   dwg.delshape(current);
	   dwg.addshape(current,0);
	}
}
